home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Gobby 0.4.7 / gobby-0.4.7.exe / {app} / share / gtksourceview-2.0 / language-specs / po.lang < prev    next >
Extensible Markup Language  |  2008-09-09  |  3KB  |  90 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: Paolo Maggi
  5.  Copyright (C) 2003 Paolo Maggi
  6.  
  7.  This library is free software; you can redistribute it and/or
  8.  modify it under the terms of the GNU Library General Public
  9.  License as published by the Free Software Foundation; either
  10.  version 2 of the License, or (at your option) any later version.
  11.  
  12.  This library is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  Library General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU Library General Public
  18.  License along with this library; if not, write to the
  19.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  Boston, MA 02111-1307, USA.
  21.  
  22. -->
  23. <language id="gettext-translation" _name="gettext translation" version="2.0" _section="Others">
  24.   <metadata>
  25.     <property name="mimetypes">text/x-po;text/x-pot;text/x-pox;text/x-gettext-translation</property>
  26.     <property name="globs">*.po;*.pot</property>
  27.     <property name="line-comment-start">#</property>
  28.   </metadata>
  29.  
  30.   <styles>
  31.     <style id="comment" _name="Comment" map-to="def:comment"/>
  32.     <style id="location" _name="Location" map-to="def:comment"/>
  33.     <style id="string" _name="String" map-to="def:string"/>
  34.     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
  35.     <!-- FIXME make it some nice name and mark it translatable -->
  36.     <style id="special" name="Special" map-to="def:special-char"/>
  37.   </styles>
  38.  
  39.   <definitions>
  40.     <context id="string" style-ref="string">
  41.       <start>"</start>
  42.       <end>"</end>
  43.       <include>
  44.         <context ref="def:escape"/>
  45.         <context ref="def:line-continue"/>
  46.         <context ref="def:email-address"/>
  47.         <context ref="def:net-address"/>
  48.         <context id="mnemonic" style-ref="special">
  49.           <match>[&_][a-zA-Z]</match>
  50.         </context>
  51.         <context id="tag" style-ref="special">
  52.       <match><[a-zA-Z\=\"\/ ]+></match>
  53.     </context>
  54.         <context ref="python:format" style-ref="special"/>
  55.         <context ref="c:printf" style-ref="special"/>
  56.       </include>
  57.     </context>
  58.     <context id="format" style-ref="comment" end-at-line-end="true">
  59.       <start>^#,</start>
  60.       <include>
  61.         <context ref="def:escape"/>
  62.         <context ref="def:line-continue"/>
  63.       </include>
  64.     </context>
  65.     <context id="location" style-ref="location" end-at-line-end="true">
  66.       <start>^#:</start>
  67.       <include>
  68.         <context ref="def:escape"/>
  69.         <context ref="def:line-continue"/>
  70.       </include>
  71.     </context>
  72.     <context id="keyword" style-ref="keyword">
  73.       <prefix>^</prefix>
  74.       <keyword>domain</keyword>
  75.       <keyword>msgid</keyword>
  76.       <keyword>msgid_plural</keyword>
  77.       <keyword>msgstr</keyword>
  78.     </context>
  79.     <context id="gettext-translation">
  80.       <include>
  81.         <context ref="string"/>
  82.         <context ref="format"/>
  83.         <context ref="location"/>
  84.         <context ref="def:shell-like-comment" style-ref="comment"/>
  85.         <context ref="keyword"/>
  86.       </include>
  87.     </context>
  88.   </definitions>
  89. </language>
  90.